/**
 * 搜索模块的请求方法
 */

import request from '@/utils/request'

/**
 * 获取搜素联想建议的方法
 * @param {*} q 
 */
export const getSearchSuggestion = q => request({
    url: '/v1_0/suggestion',
    params: {
        q
    }
})


export const getResult = q => request({
    url: '/v1_0/search',
    params: q
})